home *** CD-ROM | disk | FTP | other *** search
/ Experimental BBS Explossion 3 / Experimental BBS Explossion III.iso / msdos / icndos15.zip / RUN.DOC < prev    next >
Text File  |  1993-06-05  |  3KB  |  72 lines

  1.                                 RUN.DOC
  2.  
  3. IconDOS is basically a graphical front-end to a batch file, RUN.BAT. The
  4. batch file does all of the real work of actually running the DOS command
  5. set corresponding to the selected icon and returning control back to the
  6. IconDOS menu front-end once it is finished.  RUN.BAT has the following
  7. basic, generic structure:
  8.  
  9.  
  10. @echo off <--- Turns echo off so commands don't display as they are executed.
  11. goto %1   <--- sends control to the label passed as the first parameter when
  12.                RUN.BAT was started.
  13. :label1
  14. (DOS commands) <--- User supplied DOS commands corresponding to the
  15. goto done           command string: RUN label1
  16.  
  17. :label2
  18. (DOS commands) <--- User supplied DOS commands for cmd string: RUN label2
  19. goto done      <--- Simply jumps over the remaining command sets and
  20.    .                goes straight to the cleanup area below
  21.    .
  22.    .           <--- (add more labels/command sets as needed here, one per
  23.    .                 icon)
  24. :labeln
  25. (DOS commands)
  26. goto done
  27.  
  28. :done          <--- cleanup label
  29. CD\menu        <--- return to IconDOS directory in case it was changed above
  30. ICONDOS mymenu <--- return control back to IconDOS and 'mymenu'
  31.  
  32.  
  33. Appropriate command strings must be assigned to the icons in order to
  34. interface with RUN.BAT.  These command strings should be similiar to the
  35. following:
  36.  
  37.  
  38. Icon                Generic Icon Command String           Specific Examples
  39. _______________________________________________________________________________
  40.  
  41. 1                         RUN label1                        RUN WP
  42. 2                         RUN label2                        RUN 123
  43. 3                         RUN label3                        RUN DBASE
  44. .                              .                               .
  45. .                              .                               .
  46. .                              .                               .
  47.  
  48. RUN.BAT is initially configured to operate as a demo which simply
  49. displays a message identifying the selected icon where (DOS commands)
  50. are shown above.
  51.  
  52. ALTERNATE SETUP
  53.  
  54. If you feel that the above is too complex for your taste, there is
  55. nothing to prevent you from setting you a single, individual batch file
  56. for each icon.  The name of the batch file would be entered as the
  57. icon's command string.  The last step in the batch file should be to
  58. return control to IconDOS.
  59.  
  60. This alternate approach is perfectly valid but it is more wasteful of
  61. disk space due to the way a hard drive works.  Every disk file is stored
  62. as a chain of clusters.  A cluster is simply a fixed minimum unit of
  63. storage set by the hard drive manufacturer.  Clusters are most often 4K
  64. in size; however, 2K clusters are also used.  Partial clusters are NEVER
  65. allocated; therefore, a batch file that is 400 bytes in size requires 1
  66. full cluster for storage which wastes 3696 bytes out of a 4K cluster.
  67. This may not seem like much but it adds up quickly.  Creating a menu
  68. with only ten icons using this approach would waste 36K of disk space.
  69.  
  70. Using a single batch file containing multiple named command sets, as
  71. described above, is the more efficient, preferred approach.
  72.